<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8">
<title>铿锵五人组</title>
<style type="text/css">
   body{
	   background-image:url(<%=request.getContextPath()%>/img/b13.jpg);
	   }
   .rg{
	   text-align:center;
	   background-color:#FFF;
	   width:960px;
	   margin:auto;
	   margin-top:110px;}
	 p.cp{
	  margin-top:auto;} 
</style>
<script language="javaScript">
 function checkData(){
 var password=document.getElementById("password").value
 var cfmpassword=document.getElementById("cfmpassword").value
 if(password.length<4){
	 alert("密码输入错误");
	 return false;
	 }
 if(password.length>=4&password.length<6){
 	alert("密码安全等级低");
    return false;
 }
 if(password.length>=6&password.length<8){
 	alert("密码安全等级中");
    return false;
 }if(password.length>=8){
 	alert("密码安全等级高");
    return false;
 }
 if(cfmpassword!=password){
	alert("密码输入不一致");
    return false;
 }}
 var i=0;
 i=Math.round(Math.random()*10000);
</script>
</head>
<body>
   <br><br>
   <div>
<form action="" method="post" class="rg" onSubmit="checkData()">
  <table> <tr height="40px"><h2>欢迎来到KengQiang.com</h2></tr>
  <tr>
  <td>  
<p>邮箱<span>*</span><input type="text" name="txt_input" id="r_mail"><span>请输入你常用的邮箱</span></p>
	<p>昵称<span>*</span><input type="text" name="txt_input" id="r_username"><span> 2-7个汉字或4-14个字符（数字、字母和"_"）</span></p>
	<p>密码<span>*</span><input type="text" name="txt_input" id="r_password"><span> 6-20位字符，区分大小写</span></p>
	<p>确认密码<span>*</span><input type="text" name="txt_input" id="r_password"><span> 请输入相同的密码</span></p>
	<p>性别<span>*</span><input type="radio" name="control1" value="0" checked="checked"/>男
<input type="radio" name="control1" value="1"/>女</p>
	<p>验证码<span>*<span><input type="text" name="r_seccode"></p>
	<p><input type="submit" value="立即注册" onClick="return checkData()"/></p>  
    </td>  
    </tr>
    <tr height="40px"></tr>
    </table>
  </form>
  <br><br><br>
  </div>
 
<p class="cp"><center>Copyright &copy 2012项目三部铿锵五人组</center></p>
	  
</body>
</html>